<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once ("session_controller.php");

class Home extends Session_controller {
	public function __construct(){
		parent::__construct();	
	}
	
	function index(){
		$this->data['titulo'] = "Picones";
		$this->add_js('http://maps.googleapis.com/maps/api/js?key=' . GOOGLE_API_KEY . '&sensor=true');
		$this->show('home_view');
	}
	
	function logout(){
		$this->session->sess_destroy();
		redirect('login', 'refresh');
	}
	
//	function to_profile(){
//		$this->load->
//	}
}
